//include shared
include("shared.lua");

//rotation
ENT.Rotation = 0;

//speed
ENT.Speed = 4;

//glow material
ENT.GlowMat = Material("Sprites/orangeflare1");

//when drawing
function ENT:Draw()

	//remove outline
	self.Entity:DrawModel();

	//rotate
	self.Entity:SetAngles(Angle(0,self.Rotation,0));

	//set material
	render.SetMaterial(self.GlowMat);

	//draw sprite
	render.DrawSprite(self.Entity:GetPos(),6,6,Color(255,255,255,225));

end

//when thinking
function ENT:Think()

	//rotate
	self.Rotation = self.Rotation + self.Speed;

	//if rotation is bigger than 360
	if self.Rotation > 360 then

		//reset it
		self.Rotation = self.Rotation - 360;

	end

end